package com.rui.service;

import com.rui.entity.Manager;

import java.util.List;

/**
 * Created by Administrator on 2017/4/14.
 */
public interface ManagerService {

    void add(Manager manager);

    void delete(Integer id);

    Manager findOne(Integer id);

    void update(Manager manager);

    List<Manager> findManagers(String userName, Integer pageSize, Integer pageIndex);

    Integer findTotalPage(String userName, Integer pageSize);

    Manager findByUserName(String userName);

    List<Manager> findManagers(String userName, Integer id);
}
